package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.CollegePaperQuestionMapper;
import com.ruoyi.project.system.domain.CollegePaperQuestion;
import com.ruoyi.project.system.service.ICollegePaperQuestionService;

/**
 * 学院组卷题Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-19
 */
@Service
public class CollegePaperQuestionServiceImpl implements ICollegePaperQuestionService 
{
    @Autowired
    private CollegePaperQuestionMapper collegePaperQuestionMapper;

    /**
     * 查询学院组卷题
     * 
     * @param id 学院组卷题ID
     * @return 学院组卷题
     */
    @Override
    public CollegePaperQuestion selectCollegePaperQuestionById(Long id)
    {
        return collegePaperQuestionMapper.selectCollegePaperQuestionById(id);
    }

    /**
     * 查询学院组卷题列表
     * 
     * @param collegePaperQuestion 学院组卷题
     * @return 学院组卷题
     */
    @Override
    public List<CollegePaperQuestion> selectCollegePaperQuestionList(CollegePaperQuestion collegePaperQuestion)
    {
        return collegePaperQuestionMapper.selectCollegePaperQuestionList(collegePaperQuestion);
    }

    /**
     * 新增学院组卷题
     * 
     * @param collegePaperQuestion 学院组卷题
     * @return 结果
     */
    @Override
    public int insertCollegePaperQuestion(CollegePaperQuestion collegePaperQuestion)
    {
        return collegePaperQuestionMapper.insertCollegePaperQuestion(collegePaperQuestion);
    }

    /**
     * 修改学院组卷题
     * 
     * @param collegePaperQuestion 学院组卷题
     * @return 结果
     */
    @Override
    public int updateCollegePaperQuestion(CollegePaperQuestion collegePaperQuestion)
    {
        return collegePaperQuestionMapper.updateCollegePaperQuestion(collegePaperQuestion);
    }

    /**
     * 批量删除学院组卷题
     * 
     * @param ids 需要删除的学院组卷题ID
     * @return 结果
     */
    @Override
    public int deleteCollegePaperQuestionByIds(Long[] ids)
    {
        return collegePaperQuestionMapper.deleteCollegePaperQuestionByIds(ids);
    }

    /**
     * 删除学院组卷题信息
     * 
     * @param id 学院组卷题ID
     * @return 结果
     */
    @Override
    public int deleteCollegePaperQuestionById(Long id)
    {
        return collegePaperQuestionMapper.deleteCollegePaperQuestionById(id);
    }
}
